Skip to content

Code updated to the present syntax with corrections to edge conditions#1

Open
Daksh-404 wants to merge 6 commits intoaishack:masterfrom
Daksh-404:master
Open

Code updated to the present syntax with corrections to edge conditions#1
Daksh-404 wants to merge 6 commits intoaishack:masterfrom
Daksh-404:master

Conversation

@Daksh-404
Copy link

  1. Vectors employed instead of arrays, which made allocation and working of the program smoother and also reducing the lines of code.
  2. Usage of the latest and newest openCV 4.3 syntax. Thus the following code doesn't use any kind of pointers unlike the past syntax and working.
  3. Reduction in number of lines of code due to above 2 points
  4. Significant improvement in boundary conditions along with usage of Mat.at(Point(x,y)) for accessing each and every pixel of the Mat.

vector<float> fv; // The feature vector

Descriptor(float x, float y, vector<double> const& f)
Descriptor(float x, float y, vector<float> const& f)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using an initializer list here.

// Constructor: Give a preloaded image and provide the desired number
// of octaves and intervals
SIFT::SIFT(IplImage* img, int octaves, int intervals)
//intialising the the meSIFT class
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo


// BuildScaleSpace()
// This function generates all the blurred out images for each octave
// This function generates al`l the blurred out images for each octave
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra ` here.


class SIFT
using namespace cv;
class meSIFT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the name?

}
}

//cout << endl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented lines for debugging can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants